/**
 * 
 */
package com.zxc.mongodb;

import java.util.ArrayList;
import java.util.List;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.mongodb.MongoClient;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;

/**
 * @author Administrator
 *
 */
public class CtripCarrierDemo {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		// 获取链接    
        MongoClient mongoClient = new MongoClient("192.168.100.10", 27017);   
        
        // 获取数据库    
        MongoDatabase database = mongoClient.getDatabase("base_info");    
        
        // 进入某个文档集    
        MongoCollection<org.bson.Document> collection = database.getCollection("ctrip_carriers"); 

        String result = "{\"ResponseStatus\":{\"Timestamp\":\"2024-06-20 15:42:28\",\"Ack\":\"Success\",\"Errors\":[],\"Build\":null,\"Version\":null,\"Extension\":[{\"Id\":\"flt-roc-guid\",\"Version\":null,\"ContentType\":null,\"Value\":\"eef3c194-00fd-41ca-9642-0a52edcd9700\"},{\"Id\":\"CLOGGING_TRACE_ID\",\"Version\":null,\"ContentType\":null,\"Value\":\"6029203589259699237\"},{\"Id\":\"RootMessageId\",\"Version\":null,\"ContentType\":null,\"Value\":\"100025527-0a1958f8-477463-1250583\"}]},\"noJourneyAirlineInfoList\":[{\"groupChar\":\"a\",\"detailInfo\":[{\"airlineCode\":\"5W\",\"airlineName\":\"阿布扎比维兹航空\",\"url\":\"https://wizzair.com/en-gb/information-and-services/booking-information/check-in-and-boarding\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"XZ\",\"airlineName\":\"aeroitalia航空\",\"url\":\"https://checkin.aeroitalia.com/\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"A3\",\"airlineName\":\"爱琴海航空\",\"url\":\"https://en.aegeanair.com/\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"KA\",\"airlineName\":\"Aero Nomad航司\",\"url\":\"https://www.cathaypacific.com/cx/sc_CN.html\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"NX\",\"airlineName\":\"澳门航空公司\",\"url\":\"https://www.airmacau.com.mo/\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"AS\",\"airlineName\":\"阿拉斯加航空公司\",\"url\":\"https://www.alaskaair.com/\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"VA\",\"airlineName\":\"澳洲维珍航空\",\"url\":\"https://www.virginaustralia.com/us/en/#/\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"ET\",\"airlineName\":\"埃塞俄比亚航空公司\",\"url\":\"https://www.ethiopianairlines.com/uk/book/trip/web-check-in\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"MS\",\"airlineName\":\"埃及航空公司\",\"url\":\"https://www.egyptair.com/en/fly/check-in/Pages/web-check-in.aspx\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"EI\",\"airlineName\":\"爱尔兰航空\",\"url\":\"https://www.aerlingus.com/html/en-US/home.html\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"EY\",\"airlineName\":\"阿联酋阿提哈德航空\",\"url\":\"https://www.etihad.com/en-us/manage/check-in\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"EK\",\"airlineName\":\"阿联酋国际航空公司\",\"url\":\"https://www.emirates.com/cn/english/manage-booking/online-check-in.aspx\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"Website/H5/App\"},{\"airlineCode\":\"BK\",\"airlineName\":\"奥凯航空有限公司\",\"url\":\"https://www.okair.net/#/\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"QF\",\"airlineName\":\"澳洲航空公司\",\"url\":\"https://www.qantas.com/cn/en/travel-info/check-in.html\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"F3\",\"airlineName\":\"阿迪尔航空\",\"url\":\"https://www.flyadeal.com/en/search-flight\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"AL\",\"airlineName\":\"Alpavia航司\",\"url\":\"https://www.ryanair.com/cn/zh/lp/check-in\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"}]},{\"groupChar\":\"b\",\"detailInfo\":[{\"airlineCode\":\"BT\",\"airlineName\":\"波罗地海联合航空公司\",\"url\":\"https://www.airbaltic.com/en-LV/index\",\"localeId\":\"en-GB\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"JD\",\"airlineName\":\"北京首都航空有限公司\",\"url\":\"https://www.jdair.net/micro/main/checkin\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"AD\",\"airlineName\":\"巴西蔚蓝航空公司\",\"url\":\"https://www.voeazul.com.br/us/en/home\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"PK\",\"airlineName\":\"巴基斯坦国际航空\",\"url\":\"https://www.piac.com.pk/\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"SK\",\"airlineName\":\"北欧航空公司\",\"url\":\"https://www.flysas.com/us-en/checkin/\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"LO\",\"airlineName\":\"波兰航空公司\",\"url\":\"https://www.lot.com/us/en\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"G3\",\"airlineName\":\"巴西戈尔航空\",\"url\":\"https://b2c.voegol.com.br/check-in/#_ga=2.48414246.1091170335.1672738125-209668929.1672738125\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"RR\",\"airlineName\":\"Buzz航空\",\"url\":\"https://www.ryanair.com/cn/zh/lp/check-in\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"}]},{\"groupChar\":\"c\",\"detailInfo\":[{\"airlineCode\":\"9C\",\"airlineName\":\"春秋航空\",\"url\":\"https://www.ch.com/\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"}]},{\"groupChar\":\"d\",\"detailInfo\":[{\"airlineCode\":\"KE\",\"airlineName\":\"大韩航空公司\",\"url\":\"https://www.koreanair.com/global/zh_cn.html\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"LH\",\"airlineName\":\"德国汉莎航空公司\",\"url\":\"https://www.lufthansa.com/gb/en/homepage\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"HB\",\"airlineName\":\"大湾区航空\",\"url\":\"https://www.greaterbay-airlines.com/hk/zh_cn/manage/manage-your-trip/Online-Check-in.html\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"GY\",\"airlineName\":\"多彩贵州航空有限公司\",\"url\":\"https://www.cgzair.com/yss/check-in/\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"CN\",\"airlineName\":\"大新华航空\",\"url\":\"https://m.hnair.com/\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"}]},{\"groupChar\":\"e\",\"detailInfo\":[{\"airlineCode\":\"DP\",\"airlineName\":\"俄罗斯胜利航空公司\",\"url\":\"https://pobeda.aero/en\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"SU\",\"airlineName\":\"俄罗斯航空公司\",\"url\":\"https://www.aeroflot.ru/cn-zh/information/checkin/web_checkin\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"}]},{\"groupChar\":\"f\",\"detailInfo\":[{\"airlineCode\":\"5F\",\"airlineName\":\"flyone航空\",\"url\":\"https://flyone.eu/en/Before-flights/Check-in\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"F8\",\"airlineName\":\"福莱尔航空\",\"url\":\"https://flyflair.com/check-in\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"FU\",\"airlineName\":\"福州航空责任有限公司\",\"url\":\"https://www.fuzhou-air.cn/micro/main/checkin\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"Z2\",\"airlineName\":\"菲律宾亚洲航空公司\",\"url\":\"https://www.airasia.com/check-in/zh/cn\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"PR\",\"airlineName\":\"菲律宾航空公司\",\"url\":\"https://www.philippineairlines.com/en/check-in-online\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"BX\",\"airlineName\":\"釜山航空\",\"url\":\"https://en.airbusan.com/web/individual/reserve/index\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"AF\",\"airlineName\":\"法国航空公司\",\"url\":\"https://wwws.airfrance.co.uk/check-in\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"TO\",\"airlineName\":\"法国贯空航空\",\"url\":\"https://www.transavia.com/en-EU/my-transavia/check-in/login/\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"RW\",\"airlineName\":\"菲律宾皇家航空\",\"url\":\"https://flyroyalair.com/\",\"localeId\":\"*\",\"clientPlatform\":\"*\"}]},{\"groupChar\":\"g\",\"detailInfo\":[{\"airlineCode\":\"AV\",\"airlineName\":\"哥伦比亚航空\",\"url\":\"https://www.avianca.com/otr/en/\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"HV\",\"airlineName\":\"贯空航空\",\"url\":\"https://www.transavia.com/en-EU/my-transavia/check-in/login/\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"CX\",\"airlineName\":\"国泰航空公司\",\"url\":\"https://www.cathaypacific.com/cx/sc_CN.html\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"GT\",\"airlineName\":\"桂林航空有限公司\",\"url\":\"https://wap.airguilin.com/TRPFlightGT/index.html#/checkInFlight\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"H5/App\"},{\"airlineCode\":\"GX\",\"airlineName\":\"广西北部湾航空有限责任公司\",\"url\":\"https://www.gxairlines.com/stdair/webckipe/allChannelCheckIn?type=checkin\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"}]},{\"groupChar\":\"h\",\"detailInfo\":[{\"airlineCode\":\"XT\",\"airlineName\":\"环球航空公司\",\"url\":\"https://www.airasia.com/check-in/zh/cn\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"OZ\",\"airlineName\":\"韩亚航空公司\",\"url\":\"https://flyasiana.com/C/CN/CH/contents/online-check-in\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"GF\",\"airlineName\":\"海湾航空\",\"url\":\"https://www.gulfair.com/manage-my-booking/web-check-in\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"Website/H5/App\"},{\"airlineCode\":\"HU\",\"airlineName\":\"海南航空股份有限公司\",\"url\":\"https://new.hnair.com/hainanair/ibe/profile/cussInput.do\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"KL\",\"airlineName\":\"荷兰皇家航空公司\",\"url\":\"https://www.klm.com/check-in\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"TW\",\"airlineName\":\"韩国德威航空\",\"url\":\"https://www.twayair.com/app/reservation/searchCheckinItinerary\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"NS\",\"airlineName\":\"河北航空有限公司\",\"url\":\"https://www.hbhk.com.cn/\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"ZE\",\"airlineName\":\"韩国易斯达航空\",\"url\":\"https://www.eastarjet.com/newstar/PGWII00001\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"Y8\",\"airlineName\":\"海航旗下金鹏航空\",\"url\":\"http://www.yzr.com.cn/micro/main/checkin\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"GS\",\"airlineName\":\"海航旗下天津航\",\"url\":\"https://www.tianjin-air.com/?search=10\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"G5\",\"airlineName\":\"华夏航空有限公司\",\"url\":\"https://www.chinaexpressair.com/b2cweb/queryOnduty\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"}]},{\"groupChar\":\"j\",\"detailInfo\":[{\"airlineCode\":\"JA\",\"airlineName\":\"捷聪航空\",\"url\":\"https://www.jetsmart.com/us/en/\",\"localeId\":\"en-GB\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"GK\",\"airlineName\":\"捷星日本航空\",\"url\":\"https://checkin.jetstar.com/hk/en/checkin\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"3K\",\"airlineName\":\"捷星亚洲航空\",\"url\":\"https://checkin.jetstar.com/hk/en/checkin\",\"localeId\":\"en-GB\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"DJ\",\"airlineName\":\"吉布提航空公司\",\"url\":\"https://www.airasia.com/check-in/zh/cn\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"7C\",\"airlineName\":\"济州航空\",\"url\":\"http://wck.jejuair.net/jejuair/cn/checkin/checkinRouteList.do?channelType=H\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"AC\",\"airlineName\":\"加拿大航空公司\",\"url\":\"https://www.aircanada.com/cn/zh/aco/home/fly/check-in.html\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"TS\",\"airlineName\":\"加拿大越洋航空\",\"url\":\"https://www.airtransat.com/en-US/online-check-in-en-us\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"LS\",\"airlineName\":\"杰特图航空\",\"url\":\"https://www.jet2.com/en/login\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"WS\",\"airlineName\":\"加拿大西捷航空\",\"url\":\"https://checkin.westjet.com/index.html#/\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"JQ\",\"airlineName\":\"捷星航空\",\"url\":\"https://check-in.jetstar.com/cn/zh/checkin\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"NK\",\"airlineName\":\"精神航空\",\"url\":\"https://www.spirit.com/home-check-in\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"WJ\",\"airlineName\":\"JetSmart Airlines S.A.\",\"url\":null,\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"AQ\",\"airlineName\":\"九元航空有限公司\",\"url\":\"http://www.9air.com/zh-CN/ancillary/seat/index\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"RY\",\"airlineName\":\"江西航空有限公司\",\"url\":\"https://www.airjiangxi.com/jiangxiair/seat/asrinput.action\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"}]},{\"groupChar\":\"k\",\"detailInfo\":[{\"airlineCode\":\"XR\",\"airlineName\":\"克雷顿欧洲航空\",\"url\":\"https://www.corendonairlines.com/book-and-manage/online-check-in\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"TR\",\"airlineName\":\"酷航\",\"url\":\"https://checkin.flyscoot.com/\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"KU\",\"airlineName\":\"科威特航空\",\"url\":\"https://www.kuwaitairways.com/en/online-check-in\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"QR\",\"airlineName\":\"卡塔尔航空公司\",\"url\":\"https://www.qatarairways.com/en-us/homepage.html\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"KY\",\"airlineName\":\"昆明航空有限公司\",\"url\":\"https://wap.airkunming.com/#/checkin/index\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"H5/App\"}]},{\"groupChar\":\"l\",\"detailInfo\":[{\"airlineCode\":\"OE\",\"airlineName\":\"Laudamotion航空\",\"url\":\"https://www.ryanair.com/gb/en\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"KS\",\"airlineName\":\"罗马尼亚AirConnect\",\"url\":null,\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"LT\",\"airlineName\":\"龙江航空有限公司\",\"url\":\"https://www.longjianghk.com/peCheckin/search\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"}]},{\"groupChar\":\"m\",\"detailInfo\":[{\"airlineCode\":\"MH\",\"airlineName\":\"马来西亚航空公司\",\"url\":\"https://www.malaysiaairlines.com/cn/zh_CN/travel-info/check-in.html#guide-to-check-in\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"AK\",\"airlineName\":\"马来西亚亚洲航空公司\",\"url\":\"https://www.airasia.com/check-in/zh/cn\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"D7\",\"airlineName\":\"马来西亚亚洲航空长途公司\",\"url\":\"https://www.airasia.com/check-in/zh/cn\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"UA\",\"airlineName\":\"美国联合航空公司\",\"url\":\"https://www.united.com/travel/checkin/start.aspx\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"AA\",\"airlineName\":\"美国航空公司\",\"url\":\"https://www.americanairlines.cn/reservation/flightCheckInViewReservationsAccess.do?anchorEvent=false&from=Nav\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"DL\",\"airlineName\":\"美国达美航空公司\",\"url\":\"https://www.delta.com/\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"Y4\",\"airlineName\":\"墨西哥沃拉里斯航空\",\"url\":\"https://www.volaris.com/\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"B6\",\"airlineName\":\"美国捷蓝航空\",\"url\":\"https://checkin.jetblue.com/\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"OD\",\"airlineName\":\"马来西亚峇迪航空\",\"url\":\"https://dx.checkin.malindoair.com/dx/ODCI/#/check-in/start?locale=en-US\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"F9\",\"airlineName\":\"美国边疆航空\",\"url\":\"https://www.flyfrontier.com\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"AM\",\"airlineName\":\"墨西哥航空公司\",\"url\":\"https://www.aeromexico.com/en-us/\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"KM\",\"airlineName\":\"马耳他航空\",\"url\":\"https://airmalta.com/en\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"PG\",\"airlineName\":\"曼谷航空公司\",\"url\":\"https://www.bangkokair.com/\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"AT\",\"airlineName\":\"摩洛哥皇家航空\",\"url\":\"https://www.royalairmaroc.com/us-en\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"G4\",\"airlineName\":\"美国忠实航空\",\"url\":\"https://www.allegiantair.com/online-checkin\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"VV\",\"airlineName\":\"秘鲁Viva航空\",\"url\":null,\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"}]},{\"groupChar\":\"n\",\"detailInfo\":[{\"airlineCode\":\"D8\",\"airlineName\":\"挪威航空国际有限公司\",\"url\":\"https://www.norwegian.com/us/ipr/CheckIn#/auth/lookup?returnState=checkin.gotoresdetails\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"DY\",\"airlineName\":\"挪威穿梭航空公司\",\"url\":\"https://www.norwegian.com/us/ipr/CheckIn#/auth/lookup?returnState=checkin.gotoresdetails\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"}]},{\"groupChar\":\"o\",\"detailInfo\":[{\"airlineCode\":\"E6\",\"airlineName\":\"欧洲之翼航空\",\"url\":\"https://www.eurowings.com/en/my-trip/checkin.html\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"UX\",\"airlineName\":\"欧罗巴航空公司\",\"url\":\"https://www.aireuropa.com/uk/en/mytrips/checkin\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"EC\",\"airlineName\":\"欧洲易捷航空\",\"url\":\"https://www.easyjet.com/en\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"MI\",\"airlineName\":\"欧洲自由鸟航空\",\"url\":\"https://www.silkair.com/zh_CN/plan-and-book/your-booking/checkin/\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"EW\",\"airlineName\":\"欧洲之翼航空\",\"url\":\"https://www.eurowings.com/us/my-trip/checkin.html\",\"localeId\":\"*\",\"clientPlatform\":\"*\"}]},{\"groupChar\":\"p\",\"detailInfo\":[{\"airlineCode\":\"TP\",\"airlineName\":\"葡萄牙航空公司\",\"url\":\"https://www.flytap.com/en-us/\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"}]},{\"groupChar\":\"q\",\"detailInfo\":[{\"airlineCode\":\"NH\",\"airlineName\":\"全日本空输株式会社\",\"url\":\"https://www.ana.co.jp/en/cn/international/prepare/checkin/online-checkin/\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"QW\",\"airlineName\":\"青岛航空股份有限公司\",\"url\":\"https://www.qdairlines.com/self/CheckIn?cur=43&par=17\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"}]},{\"groupChar\":\"r\",\"detailInfo\":[{\"airlineCode\":\"FR\",\"airlineName\":\"瑞安航空\",\"url\":\"https://www.ryanair.com/gb/en/lp/check-in\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"MM\",\"airlineName\":\"日本乐桃航空\",\"url\":\"https://www.flypeach.com/en/lm/ai/airports/how_to_checkin\",\"localeId\":\"en-GB\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"RK\",\"airlineName\":\"瑞安英国航空\",\"url\":\"https://www.ryanair.com/cn/zh/lp/check-in\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"JL\",\"airlineName\":\"日本航空公司\",\"url\":\"http://www.cn.jal.co.jp/cnl/zhcn/?city=SHA\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"}]},{\"groupChar\":\"s\",\"detailInfo\":[{\"airlineCode\":\"DE\",\"airlineName\":\"神鹰航空\",\"url\":\"https://www.condor.com/eu/flight-preparation/check-in/online-check-in.jsp\",\"localeId\":\"de-DE\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"MF\",\"airlineName\":\"厦门航空有限公司\",\"url\":\"https://weixin.xiamenair.com/emas/xiahang-emas-cdn/app/Egret_App-checkIn/h5/index.html#/\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"H5/App\"},{\"airlineCode\":\"FM\",\"airlineName\":\"上海航空有限公司\",\"url\":\"https://m.ceair.com/m-checkin/boarde\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"H5/App\"},{\"airlineCode\":\"DR\",\"airlineName\":\"苏南瑞丽航空有限公司\",\"url\":\"https://www.rlair.net/#/selfCenter/flightCheckin?_k=cjt5gc\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"5J\",\"airlineName\":\"宿雾航空\",\"url\":\"https://book.cebupacificair.com/CheckIn/Retrieve\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"ZH\",\"airlineName\":\"深圳航空有限责任公司\",\"url\":\"http://m.shenzhenair.com/webresource-micro/checkIn.html\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"H5/App\"},{\"airlineCode\":\"HO\",\"airlineName\":\"上海吉祥航空股份有限公司\",\"url\":\"https://m.juneyaoair.com/checkIn/index/index.html?queryType=all\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"H5/App\"},{\"airlineCode\":\"SV\",\"airlineName\":\"沙特航空\",\"url\":\"https://www.saudia.com/?sc_lang=en-US&sc_country=US\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"3U\",\"airlineName\":\"四川航空股份有限公司\",\"url\":\"https://m.sichuanair.com/touch-webapp/newSelectSeat/newSearchTravelList\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"H5/App\"},{\"airlineCode\":\"RS\",\"airlineName\":\"首尔航空\",\"url\":\"https://flyairseoul.com/I/en/viewCheckInList.do\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"SC\",\"airlineName\":\"山东航空股份有限公司\",\"url\":\"https://www.sda.cn/newcheckIn/\",\"localeId\":\"zh-CH\",\"clientPlatform\":\"*\"}]},{\"groupChar\":\"t\",\"detailInfo\":[{\"airlineCode\":\"FD\",\"airlineName\":\"泰国亚洲航空\",\"url\":\"https://www.airasia.com/check-in/zh/cn\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"VZ\",\"airlineName\":\"泰国越捷航空公司\",\"url\":\"https://th.vietjetair.com/page/online-checkin#\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"XC\",\"airlineName\":\"土耳其Corendon航空\",\"url\":\"https://www.corendonairlines.com/book-and-manage/online-check-in\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"PC\",\"airlineName\":\"土耳其飞马航空\",\"url\":\"https://www.flypgs.com/en\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"XJ\",\"airlineName\":\"泰国亚洲航空长途公司\",\"url\":\"https://www.airasia.com/check-in/zh/cn\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"SL\",\"airlineName\":\"泰国狮航\",\"url\":\"https://www.lionairthai.com/cn/en/\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"XQ\",\"airlineName\":\"土耳其SunExpress航空公司\",\"url\":\"https://www.sunexpress.com/en/online-check-in/\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"WE\",\"airlineName\":\"泰国微笑航空有限公司\",\"url\":\"https://www.thaiairways.com/en_US/index.page\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"DD\",\"airlineName\":\"泰国皇雀航空公司\",\"url\":\"https://booking.nokair.com/en/checkin\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"TG\",\"airlineName\":\"泰国国际航空公司\",\"url\":\"https://www.thaiairways.com/zh_CN/manage/i_checkin.page?\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"TK\",\"airlineName\":\"土耳其航空公司\",\"url\":\"https://www.turkishairlines.com/en-pl/flights/manage-booking/index.html\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"TU\",\"airlineName\":\"突尼斯航空\",\"url\":\"https://www.tunisair.com/en-gb/enregistrement-en-ligne\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"BC\",\"airlineName\":\"天马航空\",\"url\":\"https://www.skymark.co.jp/en/checkin/guide.html\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"IT\",\"airlineName\":\"台湾虎航\",\"url\":\"https://sci.tigerairtw.com/en-US/login?_gl=1*ttu9n6*_ga*MjgyMjQ3Nzk5LjE3MTI3MTg3NjM.*_ga_SNXJDVLRNM*MTcxMjcxODc2My4xLjAuMTcxMjcxODc2My42MC4wLjA.\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"9D\",\"airlineName\":\"天骄航空有限公司\",\"url\":\"https://www.tianjiao-air.com/peCheckin/search\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"}]},{\"groupChar\":\"v\",\"detailInfo\":[{\"airlineCode\":\"UK\",\"airlineName\":\"VISTARA航空\",\"url\":\"https://www.airvistara.com/gb/en\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"VH\",\"airlineName\":\"Viva Air Colombia航空公司\",\"url\":null,\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"}]},{\"groupChar\":\"w\",\"detailInfo\":[{\"airlineCode\":\"W4\",\"airlineName\":\"Wizz Air Malta\",\"url\":\"https://wizzair.com/en-gb/information-and-services/booking-information/check-in-and-boarding\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"W6\",\"airlineName\":\"维兹航空\",\"url\":\"https://wizzair.com/en-gb/information-and-services/booking-information/check-in-and-boarding\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"Q6\",\"airlineName\":\"沃拉里斯哥斯达黎加航空公司\",\"url\":\"https://www.volaris.com/?culture=en-US&Flag=us\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"VS\",\"airlineName\":\"维珍航空公司\",\"url\":\"https://www.virginatlantic.com/us/en\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"PS\",\"airlineName\":\"乌克兰国际航空\",\"url\":null,\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"UQ\",\"airlineName\":\"乌鲁木齐航空有限责任公司\",\"url\":\"http://www.urumqi-air.com/micro/main/checkin\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"}]},{\"groupChar\":\"x\",\"detailInfo\":[{\"airlineCode\":\"VY\",\"airlineName\":\"西班牙伏林航空\",\"url\":\"https://www.vueling.com/en/vueling-services/check-in-online\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"IB\",\"airlineName\":\"西班牙国家航空公司\",\"url\":\"https://www.iberia.com/gb/online-checkin/?language=en&market=gb#!/ibcose\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"HX\",\"airlineName\":\"香港航空公司\",\"url\":\"https://new.hongkongairlines.com/hxair/ibe/hkaAncillaries/preCheckIn.do?Dst=preCheckIn&market=CN&language=zh\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"SQ\",\"airlineName\":\"新加坡航空公司\",\"url\":\"https://www.singaporeair.com/zh_CN/plan-and-book/your-booking/checkin/\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"UO\",\"airlineName\":\"香港快运航空公司\",\"url\":\"https://booking.hkexpress.com/en-us/check-in/login\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"GQ\",\"airlineName\":\"希腊Sky Express航空公司\",\"url\":\"https://bookings.skyexpress.gr/en/checkin\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"V7\",\"airlineName\":\"西班牙Volotea\",\"url\":\"https://www.volotea.com/en/your-booking/check-in-online/\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"TV\",\"airlineName\":\"西藏航空有限公司\",\"url\":\"https://www.tibetairlines.com.cn/stdair/webckipe/webckipe\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"JX\",\"airlineName\":\"星宇航空\",\"url\":\"https://www.starlux-airlines.com/en-US/booking/manage-my-trip/manage-my-trip\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"NZ\",\"airlineName\":\"新西兰航空公司\",\"url\":\"https://www.airnewzealand.cn/online-check-in\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"JR\",\"airlineName\":\"幸福航空有限责任公司\",\"url\":\"https://www.joy-air.com/checkInSeat\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"}]},{\"groupChar\":\"y\",\"detailInfo\":[{\"airlineCode\":\"W9\",\"airlineName\":\"英国维兹航空\",\"url\":\"https://wizzair.com/en-gb/information-and-services/booking-information/check-in-and-boarding\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"3F\",\"airlineName\":\"亚美尼亚飞一航空\",\"url\":\"https://flyone.eu/en/Before-flights/Check-in\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"SG\",\"airlineName\":\"印度香料航空\",\"url\":\"https://www.spicejet.com/\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"8L\",\"airlineName\":\"云南祥鹏航空有限责任公司\",\"url\":\"https://www.luckyair.net/micro/main/checkin\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"AZ\",\"airlineName\":\"意大利航空公司\",\"url\":\"https://www.ita-airways.com/en_gb/check-in-search.html\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"U2\",\"airlineName\":\"易捷航空\",\"url\":\"https://www.easyjet.com/en\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"QZ\",\"airlineName\":\"印尼亚洲航空\",\"url\":\"https://www.airasia.com/check-in/zh/cn\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"I5\",\"airlineName\":\"印度快运航空\",\"url\":\"https://www.airindiaexpress.com/checkin-home\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"VN\",\"airlineName\":\"越南航空公司\",\"url\":\"https://www.vietnamairlines.com/cn/zh/home\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"VJ\",\"airlineName\":\"越捷航空\",\"url\":\"https://www.vietjetair.com/en/checkin\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"6E\",\"airlineName\":\"印度靛蓝航空公司\",\"url\":\"https://www.goindigo.in/how-to-check-in.html?linkNav=web-check-in_hamburger~flight\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"AI\",\"airlineName\":\"印度航空公司\",\"url\":\"https://www.airindia.in/\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"BA\",\"airlineName\":\"英国航空公司\",\"url\":\"https://www.britishairways.com/travel/home/public/en_us/\",\"localeId\":\"en-US\",\"clientPlatform\":\"*\"}]},{\"groupChar\":\"z\",\"detailInfo\":[{\"airlineCode\":\"MU\",\"airlineName\":\"中国东方航空股份有限公司\",\"url\":\"https://m.ceair.com/m-checkin/boarde\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"H5/App\"},{\"airlineCode\":\"GJ\",\"airlineName\":\"长龙航空\",\"url\":\"https://www.loongair.cn/#/web/home\",\"localeId\":\"en-GB\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"CI\",\"airlineName\":\"中华航空公司\",\"url\":\"https://calec.china-airlines.com/echeckin_tn/eCheckin_home.aspx?country=cn&amp;locale=zh\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"BR\",\"airlineName\":\"长荣航空公司\",\"url\":\"https://booking.evaair.com/flyeva/eva/b2c/manage-your-trip/log_in.aspx?lang=sc-cn\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"CA\",\"airlineName\":\"中国国际航空股份有限公司\",\"url\":\"https://m.airchina.com.cn/ac/c/invoke/SeatcheckIn/qrySeatCheckIns@pg?comeFlag=showSeatCheckInsFlights&ifsendTicketAC=\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"H5/App\"},{\"airlineCode\":\"LJ\",\"airlineName\":\"真航空\",\"url\":\"https://www.jinair.com/ready/checkin/webMobile\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"LA\",\"airlineName\":\"智利南美航空\",\"url\":\"https://www.latamairlines.com/gb/en/check-in\",\"localeId\":\"*\",\"clientPlatform\":\"*\"},{\"airlineCode\":\"CZ\",\"airlineName\":\"中国南方航空股份有限公司\",\"url\":\"https://m.csair.com/kr/newSeatCheckIn/#/\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"H5/App\"},{\"airlineCode\":\"KN\",\"airlineName\":\"中国联合航空有限公司\",\"url\":\"https://m.flycua.com/check-seat-selection\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"H5/App\"},{\"airlineCode\":\"OQ\",\"airlineName\":\"重庆航空有限责任公司\",\"url\":\"https://m.csair.com/kr/newSeatCheckIn/#/\",\"localeId\":\"zh-CN\",\"clientPlatform\":\"*\"}]}]}";
        
        JSONObject json = JSONObject.parseObject(result);
        
        JSONArray detailInfos = new JSONArray();
        JSONArray noJourneyAirlineInfoList = json.getJSONArray("noJourneyAirlineInfoList");
        for (Object object : noJourneyAirlineInfoList) {
			JSONObject o = (JSONObject) object;
			detailInfos.addAll(o.getJSONArray("detailInfo"));
		}
        
        List<org.bson.Document> documents = new ArrayList<org.bson.Document>();
        for (Object object : detailInfos) {
        	JSONObject o = (JSONObject) object;
        	org.bson.Document doc = new org.bson.Document();
        	doc.putAll(o);
        	documents.add(doc);
		}
        collection.insertMany(documents);
        
        mongoClient.close();
	}

}
